<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Hello World</title>
    <script src="../vue.js"></script>
    <style>
      .fade-enter,
      .fade-leave-to{
        opacity: 0;
      }
      .fade-enter-active,
      .fade-leave-active{
        transition: all 1s;
      }
    </style>
  </head>
  <body>
    <div id="root">
      <transition name="fade">
        <div v-if="isShow">Hello World - {{ isShow }}</div>
      </transition>
      <button @click="isShow = !isShow">Toggle</button>
    </div>
    <script>
      const vm = new Vue({
        el: '#root',
        data: {
          isShow: true
        }
      })
    </script>
  </body>
</html>
